home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 85 / CD Temático 40 Febrero 2004.iso / DOS / testdisk / src / netware.c < prev    next >
Encoding:
C/C++ Source or Header  |  2004-01-02  |  1.2 KB  |  38 lines

  1. /*
  2.  
  3.     File: netware.c
  4.  
  5.     Copyright (C) 1998-2004 Christophe GRENIER <grenier@cgsecurity.org>
  6.   
  7.     This software is free software; you can redistribute it and/or modify
  8.     it under the terms of the GNU General Public License as published by
  9.     the Free Software Foundation; either version 2 of the License, or
  10.     (at your option) any later version.
  11.   
  12.     This program is distributed in the hope that it will be useful,
  13.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.     GNU General Public License for more details.
  16.   
  17.     You should have received a copy of the GNU General Public License
  18.     along with this program; if not, write to the Free Software
  19.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21.  */
  22. #include <string.h>
  23. #include "types.h"
  24. #include "common.h"
  25. #include "netware.h"
  26.  
  27. int recover_netware(const struct disk_netware *netware_block,t_diskext *partition)
  28. {
  29.   if(memcmp(netware_block->magic,"Nw_PaRtItIoN",12)==0)
  30.   {
  31.     partition->part_size=(dword)netware_block->nbr_sectors;
  32.     partition->part_type=(unsigned char)P_NETWARE;
  33.     partition->upart_type=UP_NETWARE;
  34.     return 0;
  35.   }
  36.   return 1;
  37. }
  38.